﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Billing.CashDesk
{
    static class Program
    {
        public static bool IsAuthorized = false;
        public static bool IsFirstLogin = false;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("ka-GE");
            System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.CreateSpecificCulture("ka-GE");

            System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyDecimalSeparator = ".";
            System.Threading.Thread.CurrentThread.CurrentUICulture.NumberFormat.CurrencyDecimalSeparator = ".";
            System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencySymbol = "ლარი";
            System.Threading.Thread.CurrentThread.CurrentUICulture.NumberFormat.CurrencySymbol = "ლარი";

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            do
            {
                System.Windows.Forms.Application.Run(new LogInForm());

                if (IsAuthorized)
                {
                    Application.Run(new FormManager(new MainForm()));
                }
            }
            while (IsAuthorized);
        }
    }
}
